﻿

#include "ModelWidget.hpp"


NAMESPACE_BEGIN(NSModelWidget)


ModelWidget* ModelWidget::ins = nullptr;

void ModelWidget::Initialize() {
	occ_widget = new NSOccWidget::OccWidget(this);
	setCentralWidget(occ_widget);
	setWindowTitle("MK建模程序v1.0.2");
	resize(1200, 800);
	setWindowFlags(windowFlags() & ~Qt::WindowCloseButtonHint);

}


void ModelWidget::Finalize() {
	if (occ_widget != nullptr) delete occ_widget;

}


void ModelWidget::Launch(bool checked) {
	if (checked) {
		show();
		return;
	}
	hide();

}



NAMESPACE_END